package com.xiaoyang.forum.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import lombok.Data;

/**
 * @author XiaoYang
 * @since 2025-09-17
 */
@Data
@TableName("t_user_follow")
public class UserFollow extends BaseEntity{

    /**
     * 编号，主键自增
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private Long id;

    /**
     * 关注者，关联用户编号
     */
    private Long followUserId;

    /**
     * 被关注者，关联用户编号
     */
    private Long followedUserId;

    /**
     * 状态: 0 粉丝 1 好友
     */
    private Integer state;
}
